package com.woniu.order.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName zy_shouhoudetail
 */
@TableName(value ="zy_shouhoudetail")
@Data
public class ZyShouhoudetail implements Serializable {
    /**
     * 售后详情i单id
     */
    @TableId
    private String id;

    /**
     * 售后单id
     */
    private String shdShid;

    /**
     * 售后单类型
     */
    private String shdShtype;

    /**
     * 退货商品id
     */
    private String shdProductid;

    /**
     * 退货商品详情（名称之类的
     */
    private String shdName;

    /**
     * 退货商品数量
     */
    private Integer shdThnum;

    /**
     * 退货总金额
     */
    private BigDecimal shdThprice;

    /**
     * 备注
     */
    private String shdRemarks;

    /**
     * 退货凭证
     */
    private String shdThpz;

    /**
     * 退货提交时间
     */
    private Date shdThsubmittime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ZyShouhoudetail other = (ZyShouhoudetail) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getShdShid() == null ? other.getShdShid() == null : this.getShdShid().equals(other.getShdShid()))
            && (this.getShdShtype() == null ? other.getShdShtype() == null : this.getShdShtype().equals(other.getShdShtype()))
            && (this.getShdProductid() == null ? other.getShdProductid() == null : this.getShdProductid().equals(other.getShdProductid()))
            && (this.getShdName() == null ? other.getShdName() == null : this.getShdName().equals(other.getShdName()))
            && (this.getShdThnum() == null ? other.getShdThnum() == null : this.getShdThnum().equals(other.getShdThnum()))
            && (this.getShdThprice() == null ? other.getShdThprice() == null : this.getShdThprice().equals(other.getShdThprice()))
            && (this.getShdRemarks() == null ? other.getShdRemarks() == null : this.getShdRemarks().equals(other.getShdRemarks()))
            && (this.getShdThpz() == null ? other.getShdThpz() == null : this.getShdThpz().equals(other.getShdThpz()))
            && (this.getShdThsubmittime() == null ? other.getShdThsubmittime() == null : this.getShdThsubmittime().equals(other.getShdThsubmittime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getShdShid() == null) ? 0 : getShdShid().hashCode());
        result = prime * result + ((getShdShtype() == null) ? 0 : getShdShtype().hashCode());
        result = prime * result + ((getShdProductid() == null) ? 0 : getShdProductid().hashCode());
        result = prime * result + ((getShdName() == null) ? 0 : getShdName().hashCode());
        result = prime * result + ((getShdThnum() == null) ? 0 : getShdThnum().hashCode());
        result = prime * result + ((getShdThprice() == null) ? 0 : getShdThprice().hashCode());
        result = prime * result + ((getShdRemarks() == null) ? 0 : getShdRemarks().hashCode());
        result = prime * result + ((getShdThpz() == null) ? 0 : getShdThpz().hashCode());
        result = prime * result + ((getShdThsubmittime() == null) ? 0 : getShdThsubmittime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", shdShid=").append(shdShid);
        sb.append(", shdShtype=").append(shdShtype);
        sb.append(", shdProductid=").append(shdProductid);
        sb.append(", shdName=").append(shdName);
        sb.append(", shdThnum=").append(shdThnum);
        sb.append(", shdThprice=").append(shdThprice);
        sb.append(", shdRemarks=").append(shdRemarks);
        sb.append(", shdThpz=").append(shdThpz);
        sb.append(", shdThsubmittime=").append(shdThsubmittime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}